package com.me.bbs.entity;

import java.io.Serializable;
import java.time.LocalDateTime;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModel;
import lombok.Data;

/**
 * <p>
 * 
 * </p>
 *
 * @author lm
 * @since 2023-01-16
 */
@ApiModel(value = "Collection对象", description = "")
@Data
public class PostCollection implements Serializable {

    private static final long serialVersionUID = 1L;

    private Long id;

    private Long user;

    private Long post;

    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createAt;


    @Override
    public String toString() {
        return "Collection{" +
            "id = " + id +
            ", user = " + user +
            ", post = " + post +
            ", createAt = " + createAt +
        "}";
    }
}
